home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•The School House•
/
QuizMaster v.10 •••
/
QuizMaster V1.0
/
QuizMaster V1.0.rsrc
/
CODE_10004_DrawText.txt
< prev
next >
Wrap
Text File
|
1988-10-21
|
3KB
|
48 lines
# near model CODE resource
# this CODE claims to have no jump table entries (but starts at 0008)
00000000 7800 moveq.l D4, 0x00
00000002 7A00 moveq.l D5, 0x00
00000004 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
00000008 0C00 0002 cmpi.b D0, 0x2
0000000C 664A bne +0x4C /* 00000058 */
0000000E 284A movea.l A4, A2
00000010 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
00000014 0C00 0001 cmpi.b D0, 0x1
00000018 670E beq +0x10 /* 00000028 */
0000001A 0C00 0000 cmpi.b D0, 0x0
0000001E 6714 beq +0x16 /* 00000034 */
00000020 0C00 0003 cmpi.b D0, 0x3
00000024 6632 bne +0x34 /* 00000058 */
00000026 3812 move.w D4, [A2]
label00000028:
00000028 4EAD 002A jsr [A5 + 0x2A /* export_1 */]
0000002C 0C00 0000 cmpi.b D0, 0x0
00000030 6702 beq +0x4 /* 00000034 */
00000032 3A12 move.w D5, [A2]
label00000034:
00000034 264C movea.l A3, A4
00000036 4EAD 008A jsr [A5 + 0x8A /* export_13 */]
0000003A 9444 sub.w D2, D4
0000003C 4A45 tst.w D5
0000003E 6706 beq +0x8 /* 00000046 */
00000040 B445 cmp.w D2, D5
00000042 6D20 blt +0x22 /* 00000064 */
00000044 3405 move.w D2, D5
label00000046:
00000046 2F0B move.l -[A7], A3
00000048 3F04 move.w -[A7], D4
0000004A 3F02 move.w -[A7], D2
0000004C A885 syscall DrawText
0000004E 264C movea.l A3, A4
00000050 4EAD 0082 jsr [A5 + 0x82 /* export_12 */]
00000054 7000 moveq.l D0, 0x00
00000056 4E75 rts
label00000058:
00000058 243C 0000 000D move.l D2, 0xD /* '\r' */
label0000005E:
0000005E 7000 moveq.l D0, 0x00
00000060 4EAD 0042 jsr [A5 + 0x42 /* export_4 */]
label00000064:
00000064 243C 0000 0005 move.l D2, 0x5
0000006A 60F2 bra -0xC /* 0000005E */